﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Data.UserDb;

namespace Acc_Web.admin
{
    public partial class AllSum : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void btnSendSearch_Click(object sender, EventArgs e)
        {
            var startDate = DateTime.Today;
            var endDate = DateTime.Today;

            DateTime.TryParse(txtStartDate.Text, out startDate);
            DateTime.TryParse(txtEndDate.Text, out endDate);

            var sr = new ShopRepository();
            var summaryDate = sr.SumAll(startDate, endDate);

            summList.DataSource = summaryDate;
            summList.DataBind();
        }
    }
}
